<template>
    <div class="btnModule">
        <el-button :icon="item.icon || 'el-icon-takeaway-box'" type="primary" plain v-for="item, index in btnList"
            :key="index" @click="handleClick(item.flag)">{{ item.name }}</el-button>
    </div>
</template>

<script>
export default {
    name: "BtnSlot",
    data() {
        return {
        };
    },
    props: {
        btnList: {
            type: Array,
            default: () => [],
        },

    },

    mounted() { },
    methods: {
        handleClick(flag) {
            this.$emit('handleClick', flag)
        },
    },
};
</script>
<style lang="scss" scoped>
.btnModule {
    padding: 15px;
    margin: 0 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
</style>